<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

class Combo extends BaseModel
{
    use HasDateTimeFormatter;

    // 类型
    const TYPE_A = 1;//A套餐
    const TYPE_B = 2;//B套餐
    const TYPE_C = 3;//C套餐
    const TYPE_TEST = 4;//体验套餐

    // 售卖类型
    const SELL_CAMP = 1;//门票
    const SELL_LEASE = 2;//租赁
    const SELL_FOOD = 3;//美食

    public $timestamps = false;
    protected $table = 'combo';

    public static function typeMap()
    {
        return [self::TYPE_A => 'A套餐', self::TYPE_B => 'B套餐', self::TYPE_C => 'C套餐', self::TYPE_TEST => '体验套餐'];
    }

    public static function sellTypeMap()
    {
        return [self::SELL_CAMP => '门票', self::SELL_LEASE => '租赁', self::SELL_FOOD => '美食'];
    }
}
